<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //语法结构   当。。。。的时候
        while (条件表达式) {
            //循环体
        }
        //执行思路当条件表达式结构为ture  则执行循环体，否则退出
        //代码验证
        var num = 1;
        while (num <= 100) {
            console.log('猜猜看啊');
            num++;
        }
    </script>
</head>

<body>

</body>

</html>